﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="SalesWorkPart.ascx.cs"
    Inherits="App_System_SalesWorkPart" %>
<%@ Import Namespace="Shpm.App.Main.Bean" %>
<%@ Import Namespace="Shpm.App.Commons.Utils" %>
<%@ Import Namespace="Com.CodeProject.Pop3" %>
<%@ Import Namespace="System.Web" %>
<%@ Register TagPrefix="shpm" TagName="SystemMenu" Src="~/System/Tag/SystemMenuTag.ascx" %>
<div>
    <table width="100%" border="0">
        <tr>
            <td width="100%" valign="top">
                <table class="table_border_line" border="0" width="100%">
                    <tr>
                        <td align="left" colspan="7">
                            <table border="0" width="100%" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td>

                                        <script language="javascript">
                                        (new TitleBar('SearchBar4', '销售跟踪')).showBar();
                                        </script>

                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Repeater ID="Repeater1" runat="server" OnItemDataBound="Repeater1_ItemDataBound">
                                <HeaderTemplate>
                                    <tr>
                                        <td class="TD_headrow_style">
                                            销售人员</td>
                                        <td class="TD_headrow_style">
                                            客户姓名</td>
                                        <td class="TD_headrow_style">
                                            销售进程</td>
                                        <td class="TD_headrow_style">
                                            登记日期</td>
                                        <td class="TD_headrow_style">
                                            最近回访</td>
                                        <td class="TD_headrow_style">
                                            交流次数</td>
                                        <td class="TD_headrow_style">
                                            销售档案</td>
                                    </tr>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <tr>
                                        <td class="TD_row_style" style="background-color: #ffffff">
                                            <%# ((SaleProcBean)Container.DataItem).EmployeeName%>
                                        </td>
                                        <td class="TD_row_style" style="background-color: #ffffff">
                                            <%# ((SaleProcBean)Container.DataItem).RelationName%>
                                        </td>
                                        <td class="TD_row_style" style="background-color: #ffffff">
                                            <%# strStatus(Convert.ToInt32(((SaleProcBean)Container.DataItem).SaleProcId))%>
                                        </td>
                                        <td class="TD_row_style" style="background-color: #ffffff">
                                            <%# (((SaleProcBean)Container.DataItem).NewDate == null) ? string.Empty : DateUtils.convertToString(((SaleProcBean)Container.DataItem).NewDate.Value)%>
                                        </td>
                                        <td class="TD_row_style" style="background-color: #ffffff">
                                            <%# (((SaleProcBean)Container.DataItem).VisiteDate == null) ? string.Empty : DateUtils.convertToString(((SaleProcBean)Container.DataItem).VisiteDate.Value)%>
                                        </td>
                                        <td class="TD_row_style" style="background-color: #ffffff">
                                            <%# ((SaleProcBean)Container.DataItem).VisiteNum%>
                                        </td>
                                        <td class="TD_row_style" style="background-color: #ffffff">
                                            <asp:LinkButton ID="Step0" runat="server" CommandName="Step0" OnCommand="LinkButton_Command"
                                                Text="详细" Enabled="true"></asp:LinkButton>
                                        </td>
                                    </tr>
                                </ItemTemplate>
                                <FooterTemplate>
                                    <tr>
                                        <td colspan="7" align="right">
                                            <asp:LinkButton ID="LinkButton1" runat="server" PostBackUrl="~/App/Search/SaleAchievementSrhForm.aspx">销售情况统计</asp:LinkButton>
                                            ｜
                                            <asp:LinkButton ID="lnkNewSales" runat="server" PostBackUrl="~/App/Input/SaleProcessBeginForm.aspx">新建销售档案</asp:LinkButton>
                                            ｜
                                            <a href="../Search/SaleProcSrhForm.aspx">更多销售档案...&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a></td>
                                    </tr>
                                </FooterTemplate>
                            </asp:Repeater>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</div>
